/**
 * 厨信通模块类型定义
 */

// 桌台信息接口
export interface DeskInfo {
    id: string
    name: string
    area_id: string
    status: 'available' | 'occupied' | 'reserved'
    capacity: number
    description?: string
}

// 菜品信息接口
export interface DishInfo {
    id: string
    name: string
    category_id: string
    price: number
    unit: string
    status: 'available' | 'unavailable'
    description?: string
}

// 订单信息接口
export interface OrderInfo {
    id: string
    desk_id: string
    dishes: DishInfo[]
    status: 'pending' | 'cooking' | 'completed' | 'cancelled'
    created_at: Date
    updated_at?: Date
}

// 厨信通消息接口
export interface CXTMessage {
    type: string
    detail: any
    timestamp: Date
}

// 厨信通操作结果接口
export interface CXTOperationResult {
    success: boolean
    message?: string
    data?: any
}
